#include <stdio.h>
int main()
{
	int i,f,a,n,c[100];
	scanf("%d",&f);
	n=0;
	while(f!=0)
	{
		n++;
		c[n]=f%2;
		f=f/2;
	}
	for(i=n;i>0;i--)
	{
		printf("%d",c[i]);
	}
	return 0;
}
